package com.wj.gulimall.authserver.util;

import java.util.Random;

public class CodeUtil {

    public static String getCode() {
        Random random = new Random();
        int randomNum = random.nextInt(1000000);
        return String.format("%06d", randomNum);
    }

}
